package com.zjuh.qss.biz.dao.ibatis;

import com.zjuh.qss.biz.dao.similar.SimilarItemDAO;
import com.zjuh.qss.biz.domain.similar.SimilarItemDO;

public class SimilarItemDAOIbaits extends BaseIbatisDAO implements SimilarItemDAO {
	
	public long create(SimilarItemDO similarItem) {
		return (Long)this.getSqlMapClientTemplate().insert("SimilarItemDAO.create", similarItem);
	}

	public void delete(long id) {
		this.getSqlMapClientTemplate().update("SimilarItemDAO.delete", id);
	}

	public void update(SimilarItemDO similarItem) {
		this.getSqlMapClientTemplate().update("SimilarItemDAO.update", similarItem);
	}

	public SimilarItemDO queryById(long id) {
		return (SimilarItemDO)this.getSqlMapClientTemplate().queryForObject("SimilarItemDAO.queryById", id);
	}


}
